<template>
	<view class="empty-content" :class="{'fixed':isfiexd}">
		<image class="empty-content-image"  :src="setSrc" mode="aspectFit"></image>
	</view>
</template>

<script>
	export default {
		props: {
			src: {
				type: String,
				default: 'empty'
			},
			isfiexd: {
				type: Boolean,
				default: false
			}
		},
		
		data() {
			return {
				typeSrc: {
					empty: ''
				},
				
			}
		},

		computed: {
			setSrc() {
				return this.typeSrc[this.src];
			},
		}
	}
</script>

<style lang="scss">
	.empty-content {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		padding-top: 100rpx;
		// background: $page-color-base;
		padding-bottom: 120rpx;
		&-image {
			width: 400rpx;
			height: 400rpx;
		}
	}
	.fixed {
		position: fixed;
		left: 0;
		top: var(--window-top);
		right: 0;
		bottom: 0;
		z-index: 999;
	}
</style>
